using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class PoolManager : IManager<PoolManager>
{
    private PoolObject poolObject;

    public PoolManager()
    {
        if (poolObject != null)
        {
            return;
        }
        poolObject = new PoolObject(100);
    }

    public void Set(string poolName,Object obj)
    {
        if (obj == null)
        {
            return;
        }
        poolObject.Set(poolName, obj);
    }

    public T Get<T>(string poolName) where T : Object
    {
        return poolObject.Get<T>(poolName);
    }

    public void Clear()
    {
        poolObject.Clear();
    }
}
